global.webpackJsonp([ 63 ], {
    "+Yee": function(e, t, n) {
        var a = n("0RD1"), i = n("8CTP"), o = n("hHyJ")(a.a, i.a, function(e) {
            n("zqLs");
        }, null, null);
        t.a = o.exports;
    },
    "0RD1": function(e, t, n) {
        var a = n("75He"), i = n("wAcR"), o = n("bWJ8"), s = n("ZlXJ"), r = n("0YKd"), c = n("rG5b"), d = n("khYN"), l = n("8xno"), u = n("YaEn");
        t.a = {
            data: function() {
                return {
                    showVerifyBox: !1,
                    showWrongCard: !1,
                    cardNo: "",
                    validate: "",
                    count: "获取验证码",
                    timer: null,
                    phoneNumContent: "",
                    validateDisable: !1,
                    url: "mine",
                    errorText: "",
                    refreshFlag: !1,
                    agreement: {},
                    isAgree: !0
                };
            },
            mixins: [ l.a ],
            components: {
                "xc-button": o.a,
                "xc-icon": a.a,
                "tip-page": i.a,
                "cover-box": s.a,
                "agreement-box": r.a
            },
            onLoad: function() {},
            onShow: function() {
                var e = this;
                this.cardNo = "", this.validate = "", this.count = "获取验证码", clearInterval(this.timer), 
                this.timer = null, this.refreshFlag = this.$root.$mp.query.refreshFlag || !1, this.isAgree = !0, 
                this.isNingbo && c.u.getAgreement().then(function(t) {
                    var n = t.agreement, a = void 0 === n ? {} : n;
                    e.agreement = a, a || (e.agreement = {}), e.agreement.agreementName && (e.$refs.agree.isAgree = !0);
                });
            },
            methods: {
                changeMind: function(e) {
                    this.isAgree = e;
                },
                hideVerifyBox: function() {
                    this.showVerifyBox = !1, this.showWrongCard = !1;
                },
                deleteCardNo: function() {
                    this.cardNo = "";
                },
                sendValidate: function() {
                    var e = this;
                    this.timer || c.e.sendBindCardVerifyCode(this.cardNo).then(function(t) {
                        e.getTime(), Object(d.s)({
                            content: t.message,
                            showCancel: !1,
                            confirmColor: "#24A1FF",
                            success: function(e) {}
                        }), e.phoneNumContent = t.message;
                    }).catch(function(t) {
                        1001 === t.error ? (Object(d.s)({
                            content: t.message,
                            showCancel: !1,
                            confirmColor: "#24A1FF",
                            success: function(t) {
                                e.cardNo = "";
                            }
                        }), e.count = "获取验证码") : (Object(d.s)({
                            content: t.message,
                            showCancel: !1,
                            confirmColor: "#24A1FF",
                            success: function(e) {}
                        }), e.count = "获取验证码");
                    });
                },
                getTime: function() {
                    var e = this, t = 60;
                    this.count = t + "s", this.timer = setInterval(function() {
                        t > 0 && t <= 60 ? (t--, e.count = t + "s") : (clearInterval(e.timer), e.timer = null, 
                        e.count = "重新获取");
                    }, 1e3);
                },
                submit: function() {
                    var e = this;
                    c.e.bindCard(this.cardNo, this.validate).then(function(t) {
                        Object(d.t)({
                            title: "绑卡成功！",
                            mask: !0,
                            duration: 1e3
                        }).then(function() {
                            e.refreshFlag && (e.$evtBus.$emit(e.$EVT_TYPES.REFRESH_INFO_LIST), e.$evtBus.$emit(e.$EVT_TYPES.REFRESH_CARD_LIST)), 
                            e.isNingbo ? u.a.go({
                                key: "centerSelect",
                                params: {
                                    preferUrl: "cardInfo"
                                }
                            }) : Object(d.h)({
                                delta: e.$root.$mp.query.delta && parseInt(e.$root.$mp.query.delta) || 1
                            });
                        });
                    }).catch(function(t) {
                        t.error ? Object(d.s)({
                            content: t.message,
                            showCancel: !1,
                            confirmColor: "#24A1FF",
                            success: function(t) {
                                t.confirm && (e.validate = "");
                            }
                        }) : Object(d.t)({
                            title: t.message
                        }).then(function() {
                            e.validate = "";
                        });
                    });
                }
            }
        };
    },
    "8CTP": function(e, t, n) {
        var a = {
            render: function() {
                var e = this, t = e.$createElement, n = e._self._c || t;
                return n("div", {
                    staticClass: "bind-card-page",
                    class: [ e.isIphoneX ? "is-iphone-x" : "", "theme-" + e.theme ]
                }, [ n("div", {
                    staticClass: "bind-card"
                }, [ n("div", {
                    staticClass: "form-row-box"
                }, [ n("div", {
                    staticClass: "form-row"
                }, [ n("div", {
                    staticClass: "label"
                }, [ e._v("卡号") ]), e._v(" "), n("div", {
                    staticClass: "input-left"
                }, [ n("input", {
                    directives: [ {
                        name: "model",
                        rawName: "v-model",
                        value: e.cardNo,
                        expression: "cardNo"
                    } ],
                    staticClass: "card-input",
                    attrs: {
                        "placeholder-class": "input-ph",
                        type: "text",
                        placeholder: "请输入卡号",
                        eventid: "0"
                    },
                    domProps: {
                        value: e.cardNo
                    },
                    on: {
                        input: function(t) {
                            t.target.composing || (e.cardNo = t.target.value);
                        }
                    }
                }) ]), e._v(" "), n("div", {
                    staticClass: "input-right"
                }, [ e.cardNo.length > 0 ? n("xc-icon", {
                    attrs: {
                        color: "#d1d1d3",
                        size: "30",
                        name: "shanchu",
                        "size-unit": "rpx",
                        eventid: "1",
                        mpcomid: "0"
                    },
                    on: {
                        tap: e.deleteCardNo
                    }
                }) : e._e() ], 1) ]), e._v(" "), n("div", {
                    staticClass: "form-row"
                }, [ n("div", {
                    staticClass: "label"
                }, [ e._v("验证码") ]), e._v(" "), n("div", {
                    staticClass: "button-left"
                }, [ n("input", {
                    directives: [ {
                        name: "model",
                        rawName: "v-model",
                        value: e.validate,
                        expression: "validate"
                    } ],
                    staticClass: "validate-input",
                    attrs: {
                        "placeholder-class": "input-ph",
                        maxlength: "6",
                        type: "number",
                        placeholder: "请输入验证码",
                        eventid: "2"
                    },
                    domProps: {
                        value: e.validate
                    },
                    on: {
                        input: function(t) {
                            t.target.composing || (e.validate = t.target.value);
                        }
                    }
                }) ]), e._v(" "), n("div", {
                    staticClass: "button-right"
                }, [ n("xc-button", {
                    attrs: {
                        text: e.count,
                        disabled: 0 === e.cardNo.length,
                        type: "default",
                        classes: "validate-button",
                        size: "small",
                        round: "small",
                        eventid: "3",
                        mpcomid: "1"
                    },
                    on: {
                        tap: e.sendValidate
                    }
                }) ], 1) ]) ]), e._v(" "), e.isNingbo && e.agreement && e.agreement.agreementName ? n("agreement-box", {
                    ref: "agree",
                    attrs: {
                        agreement: e.agreement,
                        eventid: "4",
                        mpcomid: "2"
                    },
                    on: {
                        "change-mind": e.changeMind
                    }
                }) : e._e(), e._v(" "), n("div", {
                    staticClass: "bottom-btns"
                }, [ n("xc-button", {
                    attrs: {
                        type: "primary",
                        disabled: !e.isAgree || 0 === e.cardNo.length || !e.validate,
                        text: "绑卡",
                        eventid: "5",
                        mpcomid: "3"
                    },
                    on: {
                        tap: e.submit
                    }
                }) ], 1) ], 1), e._v(" "), e.showVerifyBox ? n("cover-box", {
                    attrs: {
                        text: e.phoneNumContent,
                        eventid: "6",
                        mpcomid: "4"
                    },
                    on: {
                        cancel: e.hideVerifyBox,
                        submit: e.hideVerifyBox
                    }
                }) : e._e(), e._v(" "), e.showWrongCard ? n("cover-box", {
                    attrs: {
                        text: e.errorText,
                        eventid: "7",
                        mpcomid: "5"
                    },
                    on: {
                        cancel: e.hideVerifyBox,
                        submit: e.hideVerifyBox
                    }
                }) : e._e() ], 1);
            },
            staticRenderFns: []
        };
        t.a = a;
    },
    Md9O: function(e, t, n) {
        Object.defineProperty(t, "__esModule", {
            value: !0
        });
        var a = n("5nAL"), i = n.n(a), o = n("+Yee");
        new i.a(o.a).$mount(), t.default = {
            config: {
                navigationBarTitleText: "绑卡"
            }
        };
    },
    zqLs: function(e, t) {}
}, [ "Md9O" ]);